package com.likai.authority.service;

import java.util.List;

import com.likai.authority.pojo.Authority;
import com.likai.authority.pojo.TreeNode;
import com.likai.authority.util.AnswerInfo;

/**
 * AuthorityService层代码
 * @author likai
 * @since 2018-04-02
 */
public interface IAuthorityService {
	
	/**
	 * 查询导航菜单
	 * @param parentId
	 * @return
	 */
	public List<TreeNode> findMenu(String parentId,String [] authIds) ;
	
	/**
	 * 查询授权菜单
	 * @param parentId
	 * @return
	 */
	public List<TreeNode> findSqMenu(String parentId,String [] authIds) ;
	
	public List<TreeNode> findTreeGrid(String parentId) ;

	public int updateAuth(Authority po);

	public AnswerInfo removeAuth(String authId, String parentId);
	
}
